﻿@using Aspire.Dashboard.Otlp.Model
@using Aspire.Dashboard.Utils

@* Do this to trim significant whitespace so there isn't a space added between icon and text *@
@{
    <FluentIcon Width="16px"
                Class="resource-icon"
                Color="Color.Custom"
                CustomColor="@ColorGenerator.Instance.GetColorHexByKey(FormatName(Resource))"
                Value="@ResourceIconHelpers.GetIconForResource(Resource, IconSize.Size16)" />
}
<FluentHighlighter HighlightedText="@HighlightText" Text="@Value" />
